﻿@using Abp.Authorization.Users
@using Abp.MultiTenancy
@using Choucius.Boilerplate9.MultiTenancy
@using Choucius.Boilerplate9.Web.Models.Common.Modals
@{
    Layout = null;
}
<div class="modal fade" id="DeviceCreateModal" tabindex="-1" role="dialog" aria-labelledby="DeviceCreateModalLabel" data-backdrop="static">
    <div class="modal-dialog modal-lg" role="document">
        <div class="modal-content">
            @await Html.PartialAsync("~/Views/Shared/Modals/_ModalHeader.cshtml", new ModalHeaderViewModel(L("CreateNewDevice")))
            <form name="deviceCreateForm" role="form" class="form-horizontal">
                <div class="modal-body">
                    <div class="form-group row required">
                        <label class="col-md-3 col-form-label">@L("SerialNo")</label>
                        <div class="col-md-9">
                            <input type="text" name="SerialNo" class="form-control" required maxlength="64" minlength="2">
                        </div>
                    </div>
                    <div class="form-group row required">
                        <label class="col-md-3 col-form-label">@L("DeviceName")</label>
                        <div class="col-md-9">
                            <input type="text" name="DeviceName" class="form-control" required maxlength="128">
                        </div>
                    </div>
                    <div class="form-group row required">
                        <label class="col-md-3 col-form-label">@L("PartNo")</label>
                        <div class="col-md-9">
                            <input type="text" name="PartNo" class="form-control" required maxlength="64" minlength="2">
                        </div>
                    </div>
                    <div class="form-group row required">
                        <label class="col-md-3 col-form-label">@L("Description")</label>
                        <div class="col-md-9">
                            <input type="text" name="Description" class="form-control" required maxlength="128">
                        </div>
                    </div>
                    <div class="form-group row">
                        <div class="col-md-3">
                        </div>
                        <div class="col-md-9">
                        </div>
                    </div>
                </div>
                @await Html.PartialAsync("~/Views/Shared/Modals/_ModalFooterWithSaveAndCancel.cshtml")
            </form>
        </div>
    </div>
</div>
